/**
 * Created by MorenYang on 2017/12/8.
 */

import React from 'react';
import {connect} from 'react-redux'
import {BrowserRouter as Router, Route, Redirect, Switch} from 'react-router-dom'

import LoginView from '../pages/login'

class MainRouter extends React.Component {
  render() {
    return (
      <Router>
        <Route component={LoginView} path={'/login'} exact/>
      </Router>
    )
  }
}

const mapStateToProps = ({auth}) => ({auth});
export default connect(mapStateToProps)(MainRouter);
